package com.zy.db.odbc;

import lombok.Data;
import org.springframework.beans.BeanUtils;

import java.util.List;
import java.util.Map;

@Data
public class OdbcParam extends OdbcConnectParam {

    private String sqlStatement;

    private String tableName;

    private List<Field> fields;

    private Map<String, Field> fieldMapping;

    private List<Map<String, Object>> datas;


    public OdbcConnectParam getOdbcConnectParam() {
        OdbcConnectParam param = new OdbcConnectParam();
        BeanUtils.copyProperties(this, param);
        return param;
    }
}
